package com.tang.design.observor;

/**
 * @author tmh
 * @date 2024/5/26 22:00
 * @description
 */
public class ObserverApplication {
    public static void main(String[] args) {
        Subject subject=new Subject();
        new FirstObserver(subject);
        new SecondObserver(subject);
        subject.setState(2);
    }
}
